package boulderDash;

	

public class Game implements Runnable {
  private Thread thread;
  private int speed;
 
  public Game(){
    speed = 10;
  }
  public void start(){
                if(thread==null){
                        thread = new Thread(this);
                        thread.start();
                }
        }
public void run() {
                while(thread==Thread.currentThread()){ 
                	RuchWGrze ruchWGrze = new RuchWGrze();
                	SpadajaceGlazy sG = new SpadajaceGlazy();
                	RysowaniePlanszy rys = new RysowaniePlanszy();
                	Plansze plan = new Plansze();
                	BoulderDash.gra.repaint();
          
      try { Thread.sleep(speed);
                        } catch (InterruptedException e) {}
                }
}
}

